package com.jkai.springbootdemo1;

import java.util.HashMap;
import java.util.Map;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;


@RequestMapping
@Controller
public class UserController {
	private final Logger logger = Logger.getLogger(UserController.class);

	@RequestMapping(method = RequestMethod.GET, value = "/login")
	@ResponseBody
	public Object login() {
		Map<String, String> map = new HashMap<>();
		map.put("name", "dingkai");
		return map;
	}
}